<input type="hidden" name="id" value="{$page.id|escape:"html":"UTF-8"}" id="id" />

<div class="inner-content">
	
	<div class="breadcrumb">
		{foreach from="`$breadcrumb`" item="crumb"}<a href="#{$crumb.id}">{$crumb.title|escape:"html":"UTF-8"}</a>{/foreach}
		<span style="float: right">ID: {$page.id}</span>
		{$page.revision.title|escape:"html":"UTF-8"}
	</div>
	
	<p>
		<label for="title">Title</label>
		<input type="text" name="page[revision][title]" value="{$page.revision.title|escape:"html":"UTF-8"}" id="title" />
	</p>
	
	<p>
		<label for="link">Link</label>
		<input type="text" name="page[revision][link]" value="{$page.revision.link|escape:"html":"UTF-8"}" id="link" />
	</p>
	
	<p>
		<label for="template_id">Template</label>
		<select name="page[revision][template_id]" id="template_id">
			{foreach from="`$templates`" item="template"}
				<option value="{$template.id|escape:"html":"UTF-8"}" {if $template.id==$page.revision.template_id}selected="selected"{/if}>{$template.title|escape:"html":"UTF-8"}</option>
			{/foreach}
		</select>
	</p>
	
	<p>
		<label for="context">Context</label>
		<select name="page[revision][context]" id="context" {if $page.parent_id==0}disabled="disabled" class="disabled"{/if}>
			{foreach from="`$contexts`" item="context"}
			<option value="{$context}" {if $page.revision.context==$context}selected="selected"{/if}>{$context}</option>
			{/foreach}
			<option value="_other_" {if $page.revision.context==''}selected="selected"{/if}>Other...</option>
		</select>
		<input type="text" name="context_other" value="" id="context_other" style="width:150px;{if $page.revision.context!=''}display:none{/if}" />
	</p>
	
	<p>
		<label for="sitemap_changefreq">Allow browser caching for</label>
		<input type="text" name="page[revision][cache_time]" value="{$page.revision.cache_time|escape:"html":"UTF-8"}" id="cache_time" style="width: 5em; text-align:center" />
		<select name="page[revision][cache_time_interval]" id="cache_time_interval" style="min-width:0;padding-right:1em">
			<option value="1" {if $page.revision.cache_time_interval==1}selected="selected"{/if}>Seconds</option>
			<option value="60" {if $page.revision.cache_time_interval==60}selected="selected"{/if}>Minutes</option>
			<option value="3600" {if $page.revision.cache_time_interval==3600}selected="selected"{/if}>Hours</option>
			<option value="86400" {if $page.revision.cache_time_interval==86400}selected="selected"{/if}>Days</option>
		</select>
	</p>
	
</div>
